<?php

namespace app\common\logic;


use app\common\service\OperaService;
use app\common\service\ResponseService;
use think\facade\Event;

class BaseLogic
{
    use ResponseService;

    public function __construct()
    {
        Event::subscribe(\app\common\subscribe\MerchantSubscribe::class);
        Event::subscribe(\app\common\subscribe\OperaSubscribe::class);
    }

    public function opera($opera)
    {
        if (!empty($opera)) {
            Event::trigger('Opera', $opera, true);
        }
        return $this;
    }
}